package com.briup.app2.service.impl;

import com.briup.app2.bean.Test;
import com.briup.app2.dao.TestMapper;
import com.briup.app2.service.ITestService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class TestServiceImpl implements ITestService {
    @Resource
    private TestMapper testMapper;
    @Override
    public List<Test> findAll(){
        List<Test> list = testMapper.selectAll();
        return list;
    }
    @Override
    public void save(Test test) {
        testMapper.insert(test);
    }
    @Override
    public void update(Test test) {
        testMapper.update(test);
    }
    @Override
    public void delete(long id){
        testMapper.delete(id);
    }
}
